<%@page import="forms.ApplicantFormInsert"%>
<%@page import="support.*, java.util.*" %>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html:html>
<head>

<title>Address</title>
</head>
<body>


<%
//List<Map<String, String>> degrees = new LinkedList<Map<String, String>>();
//session.setAttribute("listofdegrees", degrees);
//session.setAttribute("initial", "0");
%>


Name:
	<bean:write name="applicantFormInsert" property="firstname" scope="session" />
	<bean:write name="applicantFormInsert" property="middle" scope="session" />
	<bean:write name="applicantFormInsert" property="lastname" scope="session" />
<BR>

Country of Citizenship: 
<bean:write name="applicantFormInsert" property="citizenship" scope="session" /><BR>
<BR>

Country of Residence:
<bean:write name="applicantFormInsert" property="residence" scope="session" /><BR>

<% String residence = request.getParameter("residence");
//session.setAttribute("residence",residence);
//out.println("Country of Residence: "+residence);
//String citizenship = (String)session.getAttribute("citizenship");
%> <BR><BR>

Please type in your address: <p><p>

<html:form method="post" action="/address">

Street Address: <html:text property="street" size="20" /> <BR>
City:  <html:text property="city" size="20" /> <BR>

<% if(residence.equals("United States")){%>
State: <html:text property="state" size="10" /> <BR>
<%} 
else {%>
Country Telephone Code: <html:text property="telephonecode" size="10" /> <BR>
<%}%>

Zip Code: <html:text property="zipcode" size="5" /> <BR>
Area Code: <html:text property="areacode" size="4" /> <BR>
number: <html:text property="number" size="4" /> <BR>

<html:submit>Submit</html:submit>
 
</html:form>

</body>
</html:html>